const { User } = require('./models');

async function checkUser() {
  try {
    const user = await User.findOne({ where: { username: 'admin' } });
    if (user) {
      console.log('用户信息:');
      console.log('ID:', user.id);
      console.log('用户名:', user.username);
      console.log('邮箱:', user.email);
      console.log('创建时间:', user.createdAt);
    } else {
      console.log('用户admin不存在');
    }
  } catch (error) {
    console.error('查询失败:', error);
  }
}

checkUser(); 